function add(a, b, c) {
    return a + b + c;
}

var f = add.bind(undefined, 100);
console.log(f(1, 2));

var g = f.bind(undefined, 200);
console.log(g(10));